home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ MMM Options.xpl < prev    next >
Text File  |  2001-02-06  |  2KB  |  85 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="4"
  4. "UIPATH"="Program Options\Other Programs\Magic Mail Monitor"
  5. "NAME"="Options"
  6. "VERSION"="1.03"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Confirm message deletion"
  9. "TEXT 2"="Hide window on program start"
  10. "TEXT 3"="Window opens when message arrives"
  11. "TEXT 4"="Checks for Message on program activation"
  12. "DESCRIPTION 1"="Item #1: To confirm message delete, check box; to immediately delete message, uncheck box."
  13. "DESCRIPTION 2"="Item #2: To hide window on starting program, check box; to show window on starting program, uncheck box."
  14. "DESCRIPTION 3"="Item #3: To show window on messsage arrival, check box; to hide window on message arrival, uncheck box." 
  15. "DESCRIPTION 4"="Item #4: To automatically poll for messages on program open, check box; to not automatically poll for messages when program opens, uncheck box."
  16. "AUTHOR"="Ojatex@aol.com"
  17. "CONTACTURL"="http://members.aol.com/ojatex/"
  18. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  19. "COMMENT 1"=" "
  20. "COMMENT 2"="Got Spam? Don't Read It, Delete It."
  21.  
  22. sP="HKCU\Software\Orient Lab\Magic Mail Monitor\Settings\"
  23. v1="intEVConfirmDelete" 'DWord
  24. v2="intStartAlwaysHidden" 'DWord
  25. v3="intPopUpMainWindow" 'DWord
  26. v4="intCheckImmediately" 'DWord
  27.  
  28. Sub Plugin_Initialize 
  29. if RegPathExists(sP) then
  30.   i=RegReadValue(sp & v1)
  31.   if i=1 then SetUIElement 1,true
  32.  
  33.   i=RegReadValue(sp & v2)
  34.   if i=1 then SetUIElement 2,true
  35.  
  36.   i=RegReadValue(sp & v3)
  37.   if i=1 then SetUIElement 3,true
  38.  
  39.   i=RegReadValue(sp & v4)
  40.   if i=1 then SetUIElement 4,true
  41.  
  42.  else
  43.     Call Disable()
  44.  end if
  45. End Sub
  46.  
  47. Sub Plugin_CheckData(ElementIndex)
  48. End Sub
  49.  
  50. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  51.  b=GetUIElement(1)
  52.  if b=true then
  53.     Call RegWriteValue(sp & v1,1,2)
  54.  else
  55.     Call RegWriteValue(sp & v1,0,2)
  56.  end if
  57.  
  58.  b=GetUIElement(2)
  59.  if b=true then
  60.     Call RegWriteValue(sp & v2,1,2)
  61.  else
  62.     Call RegWriteValue(sp & v2,0,2)
  63.  end if
  64.  
  65.  b=GetUIElement(3)
  66.  if b=true then
  67.     Call RegWriteValue(sp & v3,1,2)
  68.  else
  69.     Call RegWriteValue(sp & v3,0,2)
  70.  end if
  71.  
  72. b=GetUIElement(4)
  73.  if b=true then
  74.     Call RegWriteValue(sp & v4,1,2)
  75.  else
  76.     Call RegWriteValue(sp & v4,0,2)
  77.  
  78. end if
  79.  
  80. End Sub
  81.  
  82. Sub Plugin_Terminate 
  83. End Sub
  84.  
  85.